package com.learning.platform.dto;

import com.learning.platform.enums.LessonType;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;

public class LessonRequest {
    
    @NotBlank(message = "章节标题不能为空")
    @Size(max = 200, message = "章节标题不能超过200字符")
    private String title;
    
    private LessonType lessonType = LessonType.VIDEO;
    private Boolean isFree = false;
    private String contentUrl;
    private String videoUrl;
    private Integer duration = 0;
    private Integer orderNo;
    
    // Getters and Setters
    public String getTitle() { return title; }
    public void setTitle(String title) { this.title = title; }
    
    public LessonType getLessonType() { return lessonType; }
    public void setLessonType(LessonType lessonType) { this.lessonType = lessonType; }
    
    public Boolean getIsFree() { return isFree; }
    public void setIsFree(Boolean isFree) { this.isFree = isFree; }
    
    public String getContentUrl() { return contentUrl; }
    public void setContentUrl(String contentUrl) { this.contentUrl = contentUrl; }
    
    public String getVideoUrl() { return videoUrl; }
    public void setVideoUrl(String videoUrl) { this.videoUrl = videoUrl; }
    
    public Integer getDuration() { return duration; }
    public void setDuration(Integer duration) { this.duration = duration; }
    
    public Integer getOrderNo() { return orderNo; }
    public void setOrderNo(Integer orderNo) { this.orderNo = orderNo; }
}









